package com.ylw;

import org.apache.log4j.PropertyConfigurator;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import org.apache.log4j.xml.DOMConfigurator;

/**
 * Hello world!
 *
 */
public class App 
{
    static Logger log4j = Logger.getLogger(App.class.getClass());
    public static void main( String[] args )
    {

//        BasicConfigurator.configure();
//        PropertyConfigurator.configure( "D:\\ideaproject1\\IW\\target\\classes\\log4j.properties" );
        System.out.println(ClassLoader.getSystemResource("log4j.properties"));
//        System.out.println(ClassLoader.getSystemResource("log4j.xml"));
//        DOMConfigurator.configure("");
        log4j.error("aaa");
        System.out.println( "Hello World!" );
    }
}
